//
//  BanBu_EmoEditMangerCell.m
// Halfarea
//
//  Created by Wang Xj on 14-4-3.
//
//

#import "BanBu_EmoEditMangerCell.h"
#import "UIImageView+WebCache.h"
#import "BanBu_SmileViewAPI.h"
#import "AppCommunicationManager.h"

@implementation BanBu_EmoEditMangerCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)dealloc
{
    [_faceImage release];
    [_nameLabel release];
    [super dealloc];
}


//设置各属性
-(void)setAllInfo:(NSDictionary *)emoInfoDic
{
    self.emoInfoDic = [NSMutableDictionary dictionaryWithDictionary:emoInfoDic];
    
    self.nameLabel.text = [emoInfoDic valueForKey:KeyName];
    
    NSString * imageName = @"icon.png";
    NSString * imageUrl = [NSString stringWithFormat:@"%@%@",[emoInfoDic valueForKey:KeyPath],imageName];
    [_faceImage setImageWithUrlString:imageUrl withFolderName:[AppComManager remove_:[_emoInfoDic valueForKeyPath:Keyid]] withImageName:imageName];
}
@end
